﻿using System.Runtime.Serialization;
using System.Windows.Media.Media3D;
namespace GameBoard
{
    [DataContract]
    public class SphereVisualFactory : BaseVisualFactory
    {
        public SphereVisualFactory(SphereVisualData shapeData) : base(shapeData)
        {
        }


        public override ModelVisual3D MakeVisual()
        {
            var sp = new SphereVisual();
            sp.PopulateVisualData(VisualData);
            return sp.VisualElement;
        }
    }
}